package 中国慕课章节4;

public class CD extends Item{
    private String title;
    private String artist;
    private int numofTracks;
    private int playingTime;
    private boolean getIt=false;
    private String comment;
    public CD(String title,String artist,int numofTracks,int playingTime,String comment)
    {
//        super();
        this.title=title;
        this.artist=artist;
        this.numofTracks=numofTracks;
        this.playingTime=playingTime;
        this.comment=comment;
    }
    public static void main(String[] args) {

    }

    public void print() {
        System.out.println(title+":"+artist);
    }
}
